package com.fj.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author mo
 * @Description: 消息队列信息实体类
 * @date 2020-10-14 13:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MQMessageVO implements Serializable {

    /**消息类型，现阶段主要有两种，短信还是邮箱*/
    private String messageType;
    /**订单类型 酒店订单；旅游订单；机票订单*/
    private String orderType;
    /**消息内容对象，因为短信可能有多个不同的模板*/
    private String object;
    /**邮箱地址*/
    private String email;

    public MQMessageVO(String messageType, String orderType, String object) {
        this.messageType = messageType;
        this.orderType = orderType;
        this.object = object;
    }
}
